package 
{
	import flash.events.EventDispatcher;
	import flash.utils.describeType;
	
	import mx.controls.Alert;
	
	import org.granite.tide.Tide;
	import org.granite.tide.events.AbstractTideEvent;
	import org.granite.tide.seam.Seam;
	
	/**
	 * Author: Dylan Janeke.
	 */
	[Name("globalEventDispatcher")]
	public class GlobalEventDispatcher extends EventDispatcher
	{
		public function GlobalEventDispatcher()
		{
			
		}
		
		public static function raiseEvent(event:AbstractTideEvent): void
		{
			trace("raiseEvent->" + describeType(event).@name);
			Tide.getInstance().getContext().dispatchEvent(event);
		}
	}
}